<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>AngularJs双向绑定</title>
		<script type="text/javascript" src="../js/angular.min.js"></script>
	</head>

	<body>
		<div ng-app="myapp" ng-controller="myctrl">
			<div>
				<input type="text" name="name" ng-model="name" />
			</div>
			<div>
				hello,{{name}}
			</div>
		</div>
	</body>
	<script type="text/javascript">
		var app =  angular.module("myapp",[]);
		app.controller("myctrl",["$scope",function ($scope) {
			$scope.name="黑马程序员"
		}])
	</script>
</html>